import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import './assets/icon/iconfont.css'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts

import axios from "axios";
axios.defaults.baseURL="http://localhost:1000"
axios.interceptors.request.use(config=>{
  var token =sessionStorage.getItem("token");
  if (token) {
    config.headers.token = token;
  }
  return config;
})
Vue.prototype.$http=axios;

Vue.config.productionTip = false
/*？*/
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
